#ifndef __flash_ops_H
#define __flash_ops_H

#include <string.h>
#include <stdint.h>
#include "stm32f10x.h"    
#include "Delay.h"
#include "OLED.h"
#include "bsp_uart.h"
#include "stdio.h"
#include "debug.h"
#include "MY_AT.h"
#define MAX_PRODUCT_ID_LEN    32
#define MAX_DEVICE_NAME_LEN   32
#define MAX_TOKEN_LEN         256
#define MAX_BATTERY_JSON_LEN  128
extern device_config_t g_device_config;
void Save_DeviceConfig_To_Flash(device_config_t *config);
void Load_DeviceConfig_From_Flash(device_config_t *config);
void Init_Device_Config(void);
void Init_Device_Config(void);
#endif
